package com.bwda.dsrs.systemservice.domain.vo.emailsettting;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 邮件
 *
 * @author yj
 * @date 2019年4月28日
 */
@Data
@ApiModel(description = "邮件服务器配置表")
public class EmailSetttingVo {

    @ApiModelProperty(value = "ID", required = true)
    private Integer id;

    @ApiModelProperty(value = "邮件服务器名称")
    private String emailServerName;

    @ApiModelProperty(value = "邮件服务器编码")
    private String emailServerCode;

    @ApiModelProperty(value = "邮箱地址")
    private String address;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "显示名称")
    private String showName;


    @ApiModelProperty(value = "发件服务器IP")
    private String sendingIp;

    @ApiModelProperty(value = "端口号")
    private String port;

    @ApiModelProperty(value = "是否是SSL加密 0 是 1 不是")
    private Integer sslFlag;

    @ApiModelProperty(value = "1 启用 2 禁用（同时未删除状态只能启用一个）")
    private Integer state;

    @ApiModelProperty(value = "创建人")
    private String createUserCode;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新人")
    private String updateUserCode;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "0 未删除 1 已删除")
    private Integer delFlag;

    @ApiModelProperty(value = "备注")
    private String remark;

    public Date getCreateTime() {
        if (createTime != null) {
            return (Date) createTime.clone();
        }

        return null;
    }

    public void setCreateTime(Date createTime) {
        if (createTime != null) {
            this.createTime = (Date) createTime.clone();
        }
    }

    public Date getUpdateTime() {
        if (updateTime != null) {
            return (Date) updateTime.clone();
        }

        return null;
    }

    public void setUpdateTime(Date updateTime) {
        if (updateTime != null) {
            this.updateTime = (Date) updateTime.clone();
        }
    }
}